import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue';

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView
    },
    {
      path: '/about',
      name: 'about',
      component: () => import('../views/AboutView.vue')
    },
    {
      path: '/reactive',
      name: 'reactive',
      component: () => import('../views/Reactive.vue')
    },
    {
      path: '/computed',
      name: 'computed',
      component: () => import('../views/ComputedView.vue')
    },
    {
      path: '/provide',
      name: 'provide',
      component: () => import('../views/ProvideView.vue')
    },
    {
      path: '/ref',
      name: 'ref',
      component: () => import('../views/Refcomponent.vue')
    },
    {
      path: '/mymodel',
      name: 'mymodel',
      component: () => import('../views/Reffather.vue')
    }
  ]
})

export default router
